#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include "dominion/dominion.h"
#include "dominion/dominion_helpers.h"
#include "dominion/rngs.h"
#include "dominion/interface.h"

/*tests the getCost function*/

int getCost(int cardNumber);

int main(int argc, char *argv[])
{
	int bad_value = 1000;
	int negative_bad_value = -1000;
    
	/* boundary case -- lowest costing card */
    if (getCost(curse) == 0)
        printf("getCost(): PASS when getting cost of curse card, equal to 0. \n");
    else
        printf("getCost(): FAIL when getting cost of curse card, equal to 0. \n");
	
	/*case for a typical card, chosen randomly */
    if (getCost(adventurer) == 6)
        printf("getCost(): PASS when getting cost of adventurer card, equal to 6. \n");
    else
        printf("getCost(): FAIL when getting cost of adventurer card, equal to 6. \n");
	
	/* boundary case -- highest costing card */
    if (getCost(province) == 8)
        printf("getCost(): PASS when getting cost of province card, equal to 8. \n");
    else
        printf("getCost(): FAIL when getting cost of province card, equal to 8. \n");
	
	/* bad data -- gave a value that is not an acceptable card value */
    if (getCost(bad_value) == -1)
        printf("getCost(): PASS when getting cost of bad_value card (value 1000), equal to an error of -1. \n");
    else
        printf("getCost(): FAIL when getting cost of bad_value card (value 1000), equal to an error of -1. \n");
	
	/* another bad value, this time negative */
    if (getCost(negative_bad_value) == -1)
        printf("getCost(): PASS when getting cost of negative_bad_value card (value -1000), equal to an error of -1. \n");
    else
        printf("getCost(): FAIL when getting cost of negative_bad_value card (value -1000), equal to an error of -1. \n");
	
    return 0;
}



